import request from '@/utils/request'

export function getGroup(data) {
  return request({
    url: 'clinic/group/list',
    method: 'post',
    data
  })
}

export function saveGroup(data) {
  return request({
    url: 'clinic/group/save',
    method: 'post',
    data
  })
}

export function grantGroup(data) {
  return request({
    url: 'clinic/group/grant',
    method: 'post',
    data
  })
}

export function patients(data) {
  return request({
    url: 'clinic/group/patients',
    method: 'post',
    data
  })
}

export function groups(data) {
  return request({
    url: 'clinic/group/groups',
    method: 'post',
    data
  })
}

export function disGrantGroup(data) {
  return request({
    url: 'clinic/group/dis',
    method: 'post',
    data
  })
}

